/* eslint-disable */
import request from "@/request";

/** addComment POST /api/api/culture/comment/add */
export async function addCommentUsingPost(
  body: API.CulturePartComment,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/api/culture/comment/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getCommentCount GET /api/api/culture/comment/count */
export async function getCommentCountUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getCommentCountUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>("/api/api/culture/comment/count", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** deleteComment POST /api/api/culture/comment/delete */
export async function deleteCommentUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteCommentUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/api/culture/comment/delete", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getCommentInfo GET /api/api/culture/comment/info */
export async function getCommentInfoUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getCommentInfoUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>("/api/api/culture/comment/info", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** likeComment POST /api/api/culture/comment/like */
export async function likeCommentUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.likeCommentUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/api/culture/comment/like", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getDiscussionComments GET /api/api/culture/comment/list */
export async function getDiscussionCommentsUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getDiscussionCommentsUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListCulturePartComment_>(
    "/api/api/culture/comment/list",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** getCommentReplies GET /api/api/culture/comment/replies */
export async function getCommentRepliesUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getCommentRepliesUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListCulturePartComment_>(
    "/api/api/culture/comment/replies",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** unlikeComment POST /api/api/culture/comment/unlike */
export async function unlikeCommentUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.unlikeCommentUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/api/culture/comment/unlike", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** updateComment POST /api/api/culture/comment/update */
export async function updateCommentUsingPost(
  body: API.CulturePartComment,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/api/culture/comment/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
